package com.shop.controller;

import com.shop.common.SetMeta;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ReportController {


    @PreAuthorize("hasAuthority('148')")
    @GetMapping("reports/type/{typeId}")
    public SetMeta report(@RequestParam Integer typeId) {
        SetMeta setMeta = new SetMeta();
        if (typeId == null || typeId.equals("")) {
            setMeta.setError("报表类型不能为空");
        } else {

        }

        return setMeta;

    }
}
